efform_onload = function ()
{
	if($('#flag').val()==2)
	{
	   document.getElementById('ef_region_inqu').style.display = "none";
	}
};  
button_query_onclick = function (){
	efgrid.submitInqu( "ef_grid_result", "ZM","ZMCG51","query");
} 
 
button_update_onclick = function (){ 
	if (isSelected("ef_grid_result") == 0)return; 
	efgrid.submitForm( "ef_grid_result", "ZM","ZMCG51","update",true);
}
button_insert_onclick = function (){
	if (isSelected("ef_grid_result") == 0)return; 
	efgrid.submitForm( "ef_grid_result", "ZM","ZMCG51","insert",true);
} 
button_delete_onclick = function (){
	var grid=isSelected("ef_grid_result");
	if (grid == 0)return;  
	EFConfirm('你确认要删除吗?', '确认框', function(r) {
		if(r){
			efgrid.submitForm( "ef_grid_result", "ZM","ZMCG51","delete",true);
		}
	}); 
}    